const request = require('../request');

const saveApi = async function (data) {
  return await request.post('/api/save', data);
};

const getApiInfo = async function (apiId) {
  return await request.post(`/api/${apiId}/detail`);
};

const editApiInfo = async function (apiId) {
  return await request.post(`/api/${apiId}/edit`);
};

export {
  saveApi,
  getApiInfo,
  editApiInfo
};
